package net.itren.jetpackdemo.bean

class Student(name: String, age: Int) {
    constructor(name: String, student: Student) : this(name, age = 0) {

    }

    init {
        println("FirstName is $name  $age ")
    }
}

fun main() {
    val student = Student("姓名", 23)
//    val copyStudent = student.copy(name = "xlh", age = 12)
    println(student)
}